home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / c++ / cplxtrig.z / cplxtrig
Encoding:
Text File  |  2002-10-03  |  2.7 KB  |  57 lines

  1. CPLXTRIG(3C)                                          Last changed: 3-22-99
  2.  
  3.  
  4. NNAAMMEE
  5.      ccppllxxttrriigg - Trigonometric and hyperbolic functions for the C++ complex
  6.      library
  7.  
  8. SSYYNNOOPPSSIISS
  9.      ##iinncclluuddee <<ccoommpplleexx..hh>>
  10.  
  11.      ccllaassss ccoommpplleexx {{
  12.  
  13.      ppuubblliicc::      ffrriieenndd ccoommpplleexx ssiinn((ccoommpplleexx));;
  14.           ffrriieenndd ccoommpplleexx ccooss((ccoommpplleexx));;
  15.  
  16.           ffrriieenndd ccoommpplleexx ssiinnhh((ccoommpplleexx));;
  17.           ffrriieenndd ccoommpplleexx ccoosshh((ccoommpplleexx));; }};;
  18.  
  19. IIMMPPLLEEMMEENNTTAATTIIOONN
  20.      IRIX systems (--oo3322 ABI only)
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.           NOTE: This man page applies only to the --oo3322 ABI.  The MIPSpro
  24.           --nn3322 and --6644 ABIs support the template-based complex class which
  25.           is included in the C++ standard library and is automatically
  26.           loaded by the MIPSpro C++ compiler.  The --llmm option must still be
  27.           used to link the math library.
  28.  
  29.      The following trigonometric functions are defined for ccoommpplleexx, where:
  30.       - _x and _y are of type ccoommpplleexx.
  31.  
  32.      _y == ssiinn((_x))     Returns the sine of _x.
  33.  
  34.      _y == ccooss((_x))     Returns the cosine of _x.
  35.  
  36.      _y == ssiinnhh((_x))    Returns the hyperbolic sine of _x.
  37.  
  38.      _y == ccoosshh((_x))    Returns the hyperbolic cosine of _x.
  39.  
  40. DDIIAAGGNNOOSSTTIICCSS
  41.      If the imaginary part of _x would cause overflow ssiinnhh and ccoosshh return
  42.      ((00,, 00)).  When the real part is large enough to cause overflow, ssiinnhh
  43.      and ccoosshh return ((HHUUGGEE,, HHUUGGEE)) if the cosine and sine of the imaginary
  44.      part of _x are non-negative, ((HHUUGGEE,, --HHUUGGEE)) if the cosine is non-
  45.      negative and the sine is less than 0, ((--HHUUGGEE,, HHUUGGEE)) if the sine is
  46.      non-negative and the cosine is less than 0, and ((--HHUUGGEE,, --HHUUGGEE)) if both
  47.      sine and cosine are less than 0.  In all these cases, _e_r_r_n_o is set to
  48.      EERRAANNGGEE.
  49.  
  50.      These error-handling procedures may be changed with the function
  51.      ccoommpplleexx__eerrrroorr (ccppllxxeerrrr(3C)).
  52.  
  53. SSEEEE AALLSSOO
  54.      ccoommpplleexx(3C), ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C)
  55.  
  56.      This man page is available only online.
  57.